using System;

namespace PetShop.Web.Entities
{
    [Serializable]
    public class OrderInfo
    {
        private AddressInfo _billingAddress;
        private CreditCardInfo _creditCard;
        private DateTime _date;
        private LineItemInfo[] _lineItems;
        private int _orderId;
        private decimal _orderTotal;
        private AddressInfo _shippingAddress;
        private string _userId;


        public OrderInfo()
        {
        }


        public OrderInfo(int orderId, DateTime date, string userId, CreditCardInfo creditCard, AddressInfo billing,
                         AddressInfo shipping, decimal total)
        {
            _orderId = orderId;
            _date = date;
            _userId = userId;
            _creditCard = creditCard;
            _billingAddress = billing;
            _shippingAddress = shipping;
            _orderTotal = total;
        }


        public int OrderId
        {
            get { return _orderId; }
            set { _orderId = value; }
        }

        public DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }

        public string UserId
        {
            get { return _userId; }
            set { _userId = value; }
        }

        public CreditCardInfo CreditCard
        {
            get { return _creditCard; }
            set { _creditCard = value; }
        }

        public AddressInfo BillingAddress
        {
            get { return _billingAddress; }
            set { _billingAddress = value; }
        }

        public AddressInfo ShippingAddress
        {
            get { return _shippingAddress; }
            set { _shippingAddress = value; }
        }

        public decimal OrderTotal
        {
            get { return _orderTotal; }
            set { _orderTotal = value; }
        }

        public LineItemInfo[] LineItems
        {
            get { return _lineItems; }
            set { _lineItems = value; }
        }
    }
}